package net.sashag.nadlandroid;

import android.graphics.drawable.Drawable;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class TrivialOverlay extends ItemizedOverlay<OverlayItem> {

	private OverlayItem item;
	
	public TrivialOverlay(Drawable defaultMarker) {
		super(boundCenterBottom(defaultMarker));
		populate();
	}
	
	public void setPoint(GeoPoint point) {
		item = new OverlayItem(point, "", "");
		populate();
	}

	@Override
	protected OverlayItem createItem(int i) {
		return item;
	}

	@Override
	public int size() {
		if (item != null) {
			return 1;
		}
		return 0;
	}

}
